#ifndef SPEAKER_H
#define SPEAKER_H

#include <string>
#include "Common/Common.h"

namespace sound {

	class Speaker {
	public:
		Speaker( Vec2 pos );
		~Speaker( );

		inline Vec2 GetPos( ) const {
			return _pos;
		}

		inline void SetPos( const Vec2& pos ) {
			_pos = pos;
		}

		inline Vec2 GetVel( ) const {
			return _vel;
		}

		void Update( float dt );

		void Play( const std::string& bufferName );
		void Stop( );

	private:
		Vec2 _oldPos;
		Vec2 _pos;
		Vec2 _vel;
	};
}
#endif
